<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
	<h:form>
		<a:region renderRegionOnly="true">
			<rich:panel id="topOtoci" styleClass="topOtoci">
				<f:facet name="header">
					<s:div>
						<s:div styleClass="left">
							<h:outputText value="#{messages['title.top.islands']}" />
						</s:div>
						<s:div styleClass="right text11">
							<a:commandLink value="#{messages['label.by.visits']}" styleClass="txt11"
								reRender="topOtoci">
								<f:param name="posjet" value="1" />
							</a:commandLink> 
							<h:outputText value=" | "></h:outputText>
							<a:commandLink value="#{messages['label.by.reviews']}" styleClass="txt11"
								reRender="topOtoci"> 
								<f:param name="posjet" value="2" />
							</a:commandLink> 
						</s:div>
						<br class="clearb" />  
					</s:div>
				</f:facet>
				<rich:dataOrderedList value="#{topOtoci}" var="o" styleClass="top">
					<b><h:outputLink
						value="#{application.contextPath}/guides/otoci/otok.seam">
						<f:param name="idOtoka" value="#{o.idOtoka}" />
						<f:param name="l" value="#{currentLang}" />
						<f:param name="title" value="#{titleAction.getUrlTitle(o)}" />
						<h:outputText value="#{o.naziv}" />
					</h:outputLink></b>
				</rich:dataOrderedList>
				<h:outputLink
					value="#{application.contextPath}/guides/otoci/list.seam"
					styleClass="right special1">
					<f:param name="l" value="#{currentLang}" />
					<h:outputText value="#{messages['label.see.all.islands']}" />
				</h:outputLink>
				<br class="clearb" />
			</rich:panel>
		</a:region>
	</h:form>
</ui:component>